﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ICM_Purchase_Order.aspx.cs" Inherits="KPIS.GERP.GIMS.APP.APP_UI.Edit_Form.ICM_Purchase_Order" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%@ Register TagPrefix="custom" Namespace="KPIS.Customs.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <link rel="StyleSheet" href="../../Styles/StyleSheet.css" type="text/css">  
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" >
        </asp:ScriptManager>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript" src="../../Scripts/Common.js"></script>
            <script type="text/javascript">
                var cancelDropDownClosing = false;
                var show_date = false;
                var sumInput = null;
                var temptooltip;
                var tempValue = 0.0;
                
                function stopError()
                {
                    return true;
                }
                window.onerror = stopError;
                
                function onTextChangeGeneral(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
                }

                function onTextChange(sender) {
                    var node = tree.findNodeByText(sender.get_text());
                    if (node == null) {
                        sender.set_text("");
                    }
                }
                
                function Load(sender, args) {
                    sumInput = sender;
                }
                
                function BlurPrice(price) {
                    var text1 = $find(price);
                    sumInput.set_value(tempValue + (text1.get_value()));
                }

                function FocusPrice(price) {
                    var text1 = $find(price);
                    tempValue = sumInput.get_value() - (text1.get_value());
                }

                function StopPropagation(e) {
                    e.cancelBubble = true;
                    if (e.stopPropagation) {
                        e.stopPropagation();
                    }
                }
                
                function SeqCommitteeClick(seq) {
                    var hiddenElement = document.getElementById("<%= hdCommitteeSeq.ClientID %>");
                    hiddenElement.value = seq;
                    $find("<%= RadManager1.ClientID %>").ajaxRequest("SeqCommitteeClick:" + seq);
                }
                
                function SeqPenaltyClick(seq) {
                    var hiddenElement = document.getElementById("<%= hdPenaltySeq.ClientID %>");
                    hiddenElement.value = seq;
                    $find("<%= RadManager1.ClientID %>").ajaxRequest("SeqPenaltyClick:" + seq);
                }

                function OnClientDropDownClosingHandler(sender, e) {
                    e.set_cancel(cancelDropDownClosing);
                }

                function CloseActiveToolTip() {
                    var controller = Telerik.Web.UI.RadToolTipController.getInstance();
                    var tooltip = controller.get_activeToolTip();
                    if (tooltip) { 
                        tooltip.set_autoCloseDelay(1000);
                    }
                    GetRadWindow().Close();
                }
                
                function GetRadWindow() {
                    var oWindow = null;
                    if (window.radWindow)
                        oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog      
                    else if (window.frameElement.radWindow)
                        oWindow = window.frameElement.radWindow; //IE (and Moz as well)      
                    return oWindow;
                }
                
                function ShowFileHistory(sender, Args) {
                    if (!sender._loaded) {
                        $find("<%=RadAjaxPanel2.ClientID %>").ajaxRequest();
                        sender._loaded = true;
                    }
                }
                
                function getSourceFile() {
                    extArray = new Array(".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".rtf");
                    allowSubmit = false;
                    var file = document.getElementById('<%= attachment.ClientID %>');
                    var source_file = document.getElementById('<%= hdSourceFile.ClientID %>');
                    var div_part = document.getElementById('<%= uploadFile_div.ClientID %>');
                    value = file.value;
                    if (value.length == 0) {
                        return;
                    }
                    while (value.indexOf("\\") != -1) {
                        value = value.slice(value.indexOf("\\") + 1);
                    }
                    ext = value.slice(value.indexOf(".")).toLowerCase();
                    for (var i = 0; i < extArray.length; i++) {
                        if (ext.indexOf(extArray[i]) >= 0) {
                            allowSubmit = true; break;
                        }
                    }
                    if (allowSubmit) {
                        source_file.value = file.value;
                    }
                    else {
                        alert("ไฟล์เอกสารใช้ได้เฉพาะนามสกุล .doc, .docx, .xls, .xlsx, .ppt, .pptx, .pdf, .rtf เท่านั้น");
                        div_part.innerHTML = div_part.innerHTML;
                    }
                    
                }
                
                function validateDateReq(src, args) {
                    var durationReq = $find("<%= txtDurationReq.ClientID %>");
                    var dateReq = $find("<%= txtDateReq.ClientID %>");
                    if (durationReq.get_value().length == 0 && dateReq.get_value().length == 0) {
                        args.IsValid = false;
                    }
                }
                
                function ChangeDurationRequire(durationRequire, dateRequire, datePicker) {
                    var panelDuration = document.getElementById(durationRequire);
                    var panelDate = document.getElementById(dateRequire);
                    var panelDatePicker = document.getElementById(datePicker);
                    panelDuration.style.visibility = "visible";
                    panelDate.style.visibility = "hidden";
                    panelDatePicker.style.visibility = "hidden";
                }

                function ChangeDateRequire(durationRequire, dateRequire, datePicker) {
                    var panelDuration = document.getElementById(durationRequire);
                    var panelDate = document.getElementById(dateRequire);
                    var panelDatePicker = document.getElementById(datePicker);
                    panelDuration.style.visibility = "hidden";
                    panelDate.style.visibility = "visible";
                    panelDatePicker.style.visibility = "visible";
                }
                
                Sys.Application.add_load(setCalendarTable);
                Sys.Application.add_load(setCalendarReqTable);
                
                function setCalendarTable() {
                    var tooltip = $find("<%= ToolTipDate.ClientID %>");
                    var calendar = $find("<%= CalendarDate.ClientID %>");                       
                    var fastNavigation = calendar._getFastNavigation();
                    fastNavigation.OnToday =
                    function()
                    {
                        var today = new Date;
                        var date = [today.getFullYear(), today.getMonth()+ 1, today.getDate()];
                        calendar.selectDate(date, true);
                        fastNavigation.Popup.Hide();  
                        var all_date = date.toString().split(",");
                        var year = parseInt(all_date[0]) + 543;
                        var month = all_date[1];
                        var day = all_date[2];
                        if (day.length == 1) {
                            day = '0' + day;
                        }
                        if (month.length == 1) {
                            month = '0' + month;
                        }

                        var maskText = $find("<%= txtDate.ClientID %>");
                        maskText.set_value(day + month + year);
                        tooltip.hide();
                    }
                }
                
                function setCalendarReqTable() {
                    var tooltip = $find("<%= ToolTipDateReq.ClientID %>");
                    var calendar = $find("<%= CalendarDateReq.ClientID %>");                       
                    var fastNavigation = calendar._getFastNavigation();
                    fastNavigation.OnToday =
                    function()
                    {
                        var today = new Date;
                        var date = [today.getFullYear(), today.getMonth()+ 1, today.getDate()];
                        calendar.selectDate(date, true);
                        fastNavigation.Popup.Hide();  
                        var all_date = date.toString().split(",");
                        var year = parseInt(all_date[0]) + 543;
                        var month = all_date[1];
                        var day = all_date[2];
                        if (day.length == 1) {
                            day = '0' + day;
                        }
                        if (month.length == 1) {
                            month = '0' + month;
                        }

                        var maskText = $find("<%= txtDateReq.ClientID %>");
                        maskText.set_value(day + month + year);
                        tooltip.hide();
                    }
                }

                function OnDateClick(calendarInstance, args) {
                    var tooltip = $find("<%= ToolTipDate.ClientID %>");
                    var fastNavigation = calendarInstance._getFastNavigation();
                    var date = args.get_renderDay().get_date().toString();
                    var all_date = date.split(",");
                    var year = parseInt(all_date[0]) + 543;
                    var month = all_date[1];
                    var day = all_date[2];
                    if (day.length == 1) {
                        day = '0' + day;
                    }
                    if (month.length == 1) {
                        month = '0' + month;
                    }

                    var maskText = $find("<%= txtDate.ClientID %>");
                    maskText.set_value(day + month + year);
                    tooltip.hide();
                }
                
                function OnDateReqClick(calendarInstance, args) {
                    var tooltip = $find("<%= ToolTipDateReq.ClientID %>");
                    var fastNavigation = calendarInstance._getFastNavigation();
                    var date = args.get_renderDay().get_date().toString();
                    var all_date = date.split(",");
                    var year = parseInt(all_date[0]) + 543;
                    var month = all_date[1];
                    var day = all_date[2];
                    if (day.length == 1) {
                        day = '0' + day;
                    }
                    if (month.length == 1) {
                        month = '0' + month;
                    }

                    var maskText = $find("<%= txtDateReq.ClientID %>");
                    maskText.set_value(day + month + year);
                    tooltip.hide();
                }
                
                function OnCalendarViewChanged(sender, step) {
                    var year = parseInt(sender.FocusedDate[0]) + 543;
                    var month = sender.FocusedDate[1];
                    document.getElementById("CalendarDate_Title").innerHTML = changeMonthNumberToName(month) + " " + year; 
                } 
                
                function OnCalendarReqViewChanged(sender, step) {
                    var year = parseInt(sender.FocusedDate[0]) + 543;
                    var month = sender.FocusedDate[1];
                    document.getElementById("CalendarDateReq_Title").innerHTML = changeMonthNumberToName(month) + " " + year; 
                } 
                
                function slideConfig(uniqudId, dir) {
                    var opposite = (dir == 'Down' ? 'Up' : 'Down');
                    
                    $telerik.$(".moduleDivSlimContent")["slide" + dir](300);
                    $telerik.$(".moduleDivSlimCollapsible span.configButton")
		                .removeClass("toggleUp")
		                .removeClass("toggleDown")
		                .addClass("toggle" + opposite);

                    $telerik.$(".moduleDivSlimCollapsible")[0].href = "javascript:slideConfig('" + uniqudId + "','" + opposite + "');";
                    $telerik.$("input[name='" + uniqudId + "']").val(dir == "Down" ? "true" : "false");
                }
                
                function PenaltyRateTypeChange(sender, eventArgs)
                {
                    var panelLeast = document.getElementById("<%= panelLeast.ClientID %>");
                    var cbPenaltyCount = $find("<%= cbPenaltyCount.ClientID %>");
                    if (cbPenaltyCount.get_selectedItem().get_text() == 'วัน' && eventArgs.get_item().get_text() == 'เปอร์เซ็นต์')
                        panelLeast.style.visibility = "visible";
                    else
                        panelLeast.style.visibility = "hidden";
                }
                
                function PenaltyCountChange(sender, eventArgs)
                {
                    var panelLeast = document.getElementById("<%= panelLeast.ClientID %>");
                    var cbPenaltyRateType = $find("<%= cbPenaltyRateType.ClientID %>");
                    if (cbPenaltyRateType.get_selectedItem().get_text() == 'เปอร์เซ็นต์' && eventArgs.get_item().get_text() == 'วัน')
                        panelLeast.style.visibility = "visible";
                    else
                        panelLeast.style.visibility = "hidden";
                }
                
                function OnClientBeforeHide(sender, eventArgs) {
                    if (show_date == true)
                    {
                        eventArgs.set_cancel(true);
                        show_date = false;
                    }
                }
                
                function OnClientBeforeShow(sender, eventArgs) {
                    show_date = true;
                    if (!temptooltip)
                        temptooltip = Telerik.Web.UI.RadToolTip.getCurrent();
                }
                
                function OnClientBeforeShowDate(sender, eventArgs) {
                    show_date = false;
                }
                
                function CloseToolTip() {
                    show_date = false;
                    if (temptooltip) {
                        temptooltip.hide();
                    }
                }
                
                function ReportPdfClick(seq)
                {
                    $find("<%= RadManager1.ClientID %>").ajaxRequest("ReportPdfClick:" + seq);
                }
                
                function ReportWordClick(seq)
                {
                    $find("<%= RadManager1.ClientID %>").ajaxRequest("ReportWordClick:" + seq);
                }
                
                function ReportExcelClick(seq)
                {
                    $find("<%= RadManager1.ClientID %>").ajaxRequest("ReportExcelClick:" + seq);
                }
                
                function OpenReport(report_seq, seq, content)
                {
                    window.open('../Form/ViewReport.aspx?rpt_seq=' + report_seq + '&seq=' + seq + '&content=' + content, 'WindowReport'
                    ,'height=600,width=750,toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,scrollbars=yes');
                }
            </script>
        </telerik:RadCodeBlock>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="None" Skin="Outlook">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxManager runat="server" ID="RadManager1" OnAjaxRequest="RadManager1_AjaxRequest">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadMultipage1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                        <telerik:AjaxUpdatedControl ControlID="RadMultipage1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="panelCommand_Detail">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panel_Detail" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="panelCommand_Committee">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panel_Committee" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="panelCommand_Penalty">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panel_Penalty" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="panelCommand_File">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panel_File" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rblCommitteeType">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panelInternal" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="panelExternal" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <asp:Panel ID="panelHidden" runat="server">
            <asp:HiddenField ID="hdSeq" runat="server" Value="" />
            <asp:HiddenField ID="hdSourceFile" runat="server" Value="" />
            <asp:HiddenField ID="hdPenaltySeq" runat="server" Value="" />
            <asp:HiddenField ID="hdCommitteeSeq" runat="server" Value="" />
        </asp:Panel>
        <asp:Panel ID="panelAll" runat="server">
            <asp:Panel ID="panelConfirm" runat="server">
                <div class="bigModuleFull">
                    <div class="bigModuleBottomFull">
                        <table cellpadding="0" cellspacing="0">
                            <tr class="command-list" width="100%">
                                <td width="50%">
                                    <table cellpadding="0" cellspacing="0" >
                                        <tr width="100%">
                                            <td width="20px">
                                            </td>
                                            <td>
                                                <asp:Label CssClass="font-label" runat="server" ID="lblHeader2" Text="การทำงาน :" Font-Bold="true"></asp:Label>  
                                            </td>
                                            <td width="20px">
                                            </td>
                                            <td class="command-item" style="border: none">
                                                <asp:LinkButton ID="btnConfirm" runat="server" CssClass="LinkButton">
                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/AddRecord.gif" />&nbsp;&nbsp;ยืนยันรายการ
                                                </asp:LinkButton>
                                            </td>
                                            <td class="command-item" style="border: none">
                                                <asp:LinkButton ID="btnDeny" runat="server" CssClass="LinkButton" OnClientClick="javascript:return confirm('ยืนยันการยกเลิกรายการ')">
                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Delete.gif" />&nbsp;&nbsp;ยกเลิกรายการ
                                                </asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="command-item">
                                &nbsp;
                                </td>
                                <td width="50%">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr width="100%>
                                            <td width="20px">
                                            </td>
                                            <td>
                                                <asp:Label CssClass="font-label" runat="server" ID="lblHeader1" Text="สถานะรายการ :" Font-Bold="true"></asp:Label>  
                                            </td>
                                            <td width="20px">
                                            </td>
                                            <td>
                                                <asp:Label CssClass="font-label" runat="server" ID="lblStatus" Text="lblStatus"></asp:Label>  
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </asp:Panel>
            <telerik:RadToolTipManager ID="TipConfirm" runat="server" Animation="None" 
                Height="100px" OnAjaxUpdate="OnAjaxUpdate" Modal="true"
                Position="BottomRight" ShowEvent="OnClick" Skin="Default" Width="850px"
                HideEvent="FromCode" OnClientBeforeHide="OnClientBeforeHide" OnClientBeforeShow="OnClientBeforeShow">
            </telerik:RadToolTipManager>
            <div class="exampleWrapper">
                <telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" runat="server" MultiPageID="RadMultiPage1" Skin="Vista" CssClass="multiPage" CausesValidation="false" AutoPostBack="True" ontabclick="RadTabStrip1_TabClick"> 
                    <Tabs>
                        <telerik:RadTab runat="server" Text="ข้อมูลหลัก" Value="Detail" Selected="true">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="รายการพัสดุ" Value="Item">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="คณะกรรมการ" Value="Committee">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="กำหนดการปรับ" Value="Penalty">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="เอกสารแนบ" Value="File">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="รายงาน" Value="Report">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="ความคืบหน้า" Value="Progress">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView">
                    <telerik:RadPageView ID="RadPageView1" runat="server">
                        <asp:Panel ID="panel_Detail" runat="server">
                            <table cellpadding="0" cellspacing="0" style="width: 98%;">
                                <tr>
                                    <td>
                                        <asp:Panel ID="panelCommand_Detail" runat="server">
                                            <div class="bigModuleFull">
                                                <div class="bigModuleBottomFull">
                                                    <table cellpadding="0" cellspacing="0">
                                                        <tr class="command-list">
                                                            <td class="command-item" style="border: none">
                                                                <asp:LinkButton ID="Edit_Detail" runat="server" CssClass="LinkButton"  OnClick="Edit_Detail_Click" CausesValidation="false">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Edit.gif" />&nbsp;&nbsp;แก้ไขข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item" style="border: none">
                                                                <asp:LinkButton ID="EditSave_Detail" runat="server" CssClass="LinkButton" Visible="false" onclick="EditSave_Detail_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cmd_Save.gif" />&nbsp;&nbsp;บันทึกข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Cancel_Detail" runat="server" CssClass="LinkButton" Visible="false" onclick="Cancel_Detail_Click" CausesValidation="false">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cancel.gif" />&nbsp;&nbsp;ยกเลิก
                                                                </asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>    
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr valign="top">
                                    <td valign="top">
                                        <div align="left" class="bigModuleFull">
                                            <div class="bigModuleBottomFull">
                                                <asp:Panel ID="panelHeaderList" runat="server">
                                                    <div class="header-grid">
                                                        <asp:Label ID="lblHeaderList" runat="server" Text="ข้อมูลหลัก"></asp:Label>
                                                    </div>
                                                </asp:Panel>
                                                <asp:Panel ID="panelList_Detail" runat="server" CssClass="panelList" ScrollBars="Auto">
                                                    <custom:ConfiguratorPanel runat="server" ID="ConfiguratorPanel1" Title="รายละเอียดผู้ขาย/รับจ้าง" Width="98%">
                                                        <table width="98%">
                                                            <tr>
                                                                <td>
                                                                    <table width="98%">
                                                                        <tr>
                                                                            <td width="20px">
                                                                            </td>
                                                                            <td width="50%">
                                                                                <div class="formList-detail">
                                                                                    <table width="100%">
                                                                                        <tr>
                                                                                            <td width="120px" valign="top" class="font-label">
                                                                                                รหัสผู้ขาย GFMIS :
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Label CssClass="font-label" ID="lblGfmisCode" runat="server"></asp:Label> 
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                            <td width="10px">
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table width="100%">
                                                                                        <tr>
                                                                                            <td width="120px" valign="top" class="font-label">
                                                                                                กลุ่มผู้ขาย :
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Label CssClass="font-label" ID="lblContactGroup" runat="server"></asp:Label> 
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td colspan="3">
                                                                                <div class="formList-detail">
                                                                                    <table width="100%">
                                                                                        <tr>
                                                                                            <td width="120px" valign="top" class="font-label">
                                                                                                ชื่อผู้ขาย/รับจ้าง :
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Label CssClass="font-label" ID="lblNameTh" runat="server"></asp:Label> 
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td colspan="3">
                                                                                <div class="formList-detail">
                                                                                    <table width="100%">
                                                                                        <tr>
                                                                                            <td width="120px" valign="top" class="font-label">
                                                                                                ที่อยู่ :
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Label CssClass="font-label" ID="lblAddress" runat="server"></asp:Label> 
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table width="100%">
                                                                                        <tr>
                                                                                            <td width="120px" valign="top" class="font-label">
                                                                                                เบอร์โทรศัพท์ :
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Label CssClass="font-label" ID="lblTel" runat="server"></asp:Label> 
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                            <td>
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table width="100%">
                                                                                        <tr>
                                                                                            <td width="120px" valign="top" class="font-label">
                                                                                                อีเมล์ :
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Label CssClass="font-label" ID="lblEmail" runat="server"></asp:Label> 
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </custom:ConfiguratorPanel>
                                                    <table cellpadding="0" cellspacing="0" width="98%">
                                                        <tr>
                                                            <td valign="top">
                                                                <div class="font-label">
                                                                    <table cellpadding="0" cellspacing="0" width="95%">
                                                                        <tr>
                                                                            <td width="30px">
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td width = "100px" valign="top" class="font-label">
                                                                                                วันที่รายการ :
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Label ID="lblDate" runat="server" AssociatedControlID="txtDate"></asp:Label> 
                                                                                                <telerik:RadMaskedTextBox ID="txtDate" runat="server" Mask=" ##/##/####" Width="75px" TextWithLiterals=" //" SelectionOnFocus="SelectAll"></telerik:RadMaskedTextBox>
                                                                                                <asp:LinkButton ID="LinkButton1" runat="server" CssClass="LinkButton">
                                                                                                    <img alt="" src="../Image/Icon/Calendar.gif" style="border:0px;vertical-align:middle;" />
                                                                                                </asp:LinkButton>
                                                                                                <telerik:RadToolTip ID="ToolTipDate" runat="server" Animation="None" HideEvent="LeaveToolTip" Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" 
                                                                                                TargetControlID="LinkButton1" Modal="true">
                                                                                                    <telerik:RadCalendar id="CalendarDate" runat="server" TitleFormat="MMMM yyyy" EnableMultiSelect="false" UseRowHeadersAsSelectors="false" UseColumnHeadersAsSelectors="false" DayCellToolTipFormat="dddd, dd MMMM, yyyy" NavigationPrevToolTip="เดือนก่อนหน้า" NavigationNextToolTip="เดือนถัดไป" FastNavigationNextToolTip="3 เดือนถัดไป" FastNavigationPrevToolTip="3 เดือนก่อนหน้า">
                                                                                                        <ClientEvents OnDateClick="OnDateClick" OnCalendarViewChanged="OnCalendarViewChanged"></ClientEvents>
                                                                                                        <FastNavigationSettings EnableTodayButtonSelection="true" TodayButtonCaption="ไปที่วันนี้" OkButtonCaption="เปลี่ยน" CancelButtonCaption="ยกเลิก" />
                                                                                                    </telerik:RadCalendar>
                                                                                                </telerik:RadToolTip>
                                                                                                &nbsp;<label id="Label20" runat="server"><font color="red">*</font></label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Panel ID="panelValtxtDate" runat="server"></asp:Panel>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td width = "100px" valign="top" class="font-label">
                                                                                                เรื่อง :
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Label ID="lblName" runat="server" AssociatedControlID="txtName"></asp:Label> 
                                                                                                <asp:TextBox ID="txtName" runat="server" CssClass="TextBox" Width="700px"></asp:TextBox>
                                                                                                <label id="Label1" runat="server"><font color="red">*</font></label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Panel ID="panelValtxtName" runat="server"></asp:Panel>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td width = "100px" valign="top" class="font-label">
                                                                                                หมายเหตุ :
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                <asp:Label ID="lblRemark" runat="server" AssociatedControlID="txtDescr"></asp:Label> 
                                                                                                <asp:TextBox ID="txtDescr" runat="server" CssClass="TextBox" Width="700px" Height="60px"></asp:TextBox>
                                                                                                <label id="Label4" runat="server"><font color="red">*</font></label>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                    <table width="98%" cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <td>
                                                                                <table width="98%" cellpadding="0" cellspacing="0">
                                                                                    <tr>
                                                                                        <td width="30px">
                                                                                        </td>
                                                                                        <td>
                                                                                            <table>
                                                                                                <tr>
                                                                                                    <td width="100px">
                                                                                                        ระยะเวลาส่งมอบ :
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <asp:Label ID="lblDuration" runat="server"></asp:Label>
                                                                                                        <asp:RadioButton ID="rdbDuration" runat="server" Text="ภายใน" GroupName="During" />
                                                                                                    </td>
                                                                                                    <td width="500px">
                                                                                                        <asp:Panel ID="panelDuration" runat="server">
                                                                                                            <telerik:RadNumericTextBox ID="txtDurationReq" runat="server" Width="50px" Skin="Outlook" NumberFormat-DecimalDigits="0"></telerik:RadNumericTextBox> 
                                                                                                            <telerik:RadComboBox CssClass="RadComboBox" runat="server" ID="cbDurationType" 
                                                                                                                AllowCustomText="false" ShowDropDownOnTextboxClick="true" Width="80px" 
                                                                                                                Filter="Contains" DataTextField="Name" DataValueField="Seq"  MarkFirstMatch="false" OnClientTextChange="onTextChangeGeneral">
                                                                                                            </telerik:RadComboBox>
                                                                                                            &nbsp;<label id="Label3" runat="server">นับจากวันที่รับใบสั่ง</label>
                                                                                                        </asp:Panel>  
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                    <table width="98%" cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <td>
                                                                                <table width="98%" cellpadding="0" cellspacing="0">
                                                                                    <tr>
                                                                                        <td width="30px">
                                                                                        </td>
                                                                                        <td>
                                                                                            <div class="formList-detail">
                                                                                                <table>
                                                                                                    <tr>
                                                                                                        <td width="100px">
                                                                                                        </td>
                                                                                                        <td>
                                                                                                            <asp:RadioButton ID="rdbDate" runat="server" Text="ภายในวันที่" GroupName="During" />
                                                                                                        </td>
                                                                                                        <td>
                                                                                                            <asp:Panel ID="panelDateReq" runat="server">
                                                                                                                <telerik:RadMaskedTextBox ID="txtDateReq" runat="server" Mask=" ##/##/####" Width="75px" TextWithLiterals=" //" SelectionOnFocus="SelectAll"></telerik:RadMaskedTextBox>
                                                                                                            </asp:Panel>
                                                                                                        </td>
                                                                                                        <td width="550px">
                                                                                                            <asp:Panel ID="panelDateReqPick" runat="server">
                                                                                                                <asp:LinkButton ID="LinkButton2" runat="server" CssClass="LinkButton">
                                                                                                                    <img alt="" src="../Image/Icon/Calendar.gif" style="border:0px;vertical-align:middle;" />
                                                                                                                </asp:LinkButton>
                                                                                                                <telerik:RadToolTip ID="ToolTipDateReq" runat="server" Animation="None" HideEvent="LeaveToolTip" Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" 
                                                                                                                TargetControlID="LinkButton2" Modal="true">
                                                                                                                    <telerik:RadCalendar id="CalendarDateReq" runat="server" TitleFormat="MMMM yyyy" EnableMultiSelect="false" UseRowHeadersAsSelectors="false" UseColumnHeadersAsSelectors="false" DayCellToolTipFormat="dddd, dd MMMM, yyyy" NavigationPrevToolTip="เดือนก่อนหน้า" NavigationNextToolTip="เดือนถัดไป" FastNavigationNextToolTip="3 เดือนถัดไป" FastNavigationPrevToolTip="3 เดือนก่อนหน้า">
                                                                                                                        <ClientEvents OnDateClick="OnDateReqClick" OnCalendarViewChanged="OnCalendarReqViewChanged"></ClientEvents>
                                                                                                                        <FastNavigationSettings EnableTodayButtonSelection="true" TodayButtonCaption="ไปที่วันนี้" OkButtonCaption="เปลี่ยน" CancelButtonCaption="ยกเลิก" />
                                                                                                                    </telerik:RadCalendar>
                                                                                                                </telerik:RadToolTip>
                                                                                                            </asp:Panel>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                        </td>
                                                                                                        <td colspan="3">
                                                                                                            <asp:Panel ID="panelValDateReq" runat="server"></asp:Panel>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </div>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                                <asp:Panel ID="panelGrid_Detail" runat="server" CssClass="panelGrid" ScrollBars="Auto">
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </telerik:RadPageView>  
                    <telerik:RadPageView ID="RadPageView2" runat="server">
                        <asp:Panel ID="panel_Item" runat="server">
                            <table cellpadding="0" cellspacing="0" style="width: 98%;">
                                <tr valign="top">
                                    <td valign="top">
                                        <div align="left" class="bigModuleFull">
                                            <div class="bigModuleBottomFull">
                                                <asp:Panel ID="panel2" runat="server">
                                                    <div class="header-grid">
                                                        <asp:Label ID="Label5" runat="server" Text="ข้อมูลรายการพัสดุ"></asp:Label>
                                                    </div>
                                                </asp:Panel>
                                                <asp:Panel CssClass="panelGrid" ID="panelGrid_Item" runat="server" ScrollBars="Auto" Visible="true">
                                                    <div align="left">
                                                        <telerik:RadGrid CssClass="RadGrid" ID="Grid_Item" runat="server" AllowFilteringByColumn="true"
                                                        AllowMultiRowSelection="True" AllowPaging="false" AllowSorting="True"
                                                        AutoGenerateColumns="False" EnableAJAX="True" ShowFooter="true"
                                                        GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                        OnItemCommand="Grid_Item_ItemCommand" OnItemDataBound="Grid_Item_ItemDataBound">
                                                            <MasterTableView GroupLoadMode="Client" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                <Columns>
                                                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" 
                                                                        CurrentFilterFunction="Contains" DataField="InfoBidderQuotation.InfoBidder.InfoVat.Name" 
                                                                        FilterControlWidth="100%" Groupable="true" 
                                                                        GroupByExpression="InfoBidderQuotation.InfoBidder.InfoVat.Name Group By InfoBidderQuotation.InfoBidder.InfoVat.Seq" 
                                                                        HeaderText="ฐานภาษี" ShowFilterIcon="false" UniqueName="InfoBidderQuotation.InfoBidder.InfoVat.Name" 
                                                                        Visible="false">
                                                                        <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridTemplateColumn DataField="InfoBidderQuotation.InfoPrItem.InfoItem.Name" UniqueName="InfoBidderQuotation.InfoPrItem.InfoItem.Name" HeaderText="รายการพัสดุ" AutoPostBackOnFilter="true" 
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="false" FilterControlWidth="100%">
                                                                        <ItemTemplate> 
                                                                            <asp:Label ID="lblItem" runat="server" Text='<%# Eval("InfoBidderQuotation.InfoPrItem.InfoItem.Name") %>'>
                                                                            </asp:Label> 
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" Width="180px" />
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                        <FooterStyle HorizontalAlign="Right" />
                                                                        <FooterTemplate>
                                                                            <asp:Label ID="Label21" CssClass="font-label" runat="server" Font-Bold="true" Text="วงเงินจัดหาทั้งหมด :">
                                                                            </asp:Label>
                                                                        </FooterTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridBoundColumn DataField="Descr" HeaderText="รายละเอียด" 
                                                                        AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                        FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" UniqueName="Descr" SortExpression="Descr">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="Qty" DataFormatString="{0:N0}"
                                                                        AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                        FilterControlWidth="100%"
                                                                        HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวน" 
                                                                        UniqueName="Qty">
                                                                        <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                                                        <ItemStyle HorizontalAlign="Right" />
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="InfoBidderQuotation.InfoPrItem.InfoItem.InfoUnit.Name" 
                                                                        AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                        FilterControlWidth="100%"
                                                                        HeaderStyle-HorizontalAlign="Center" HeaderText="หน่วย" 
                                                                        UniqueName="InfoBidderQuotation.InfoPrItem.InfoItem.InfoUnit.Name">
                                                                        <HeaderStyle HorizontalAlign="Center" Width="70px" />
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="PriceExVat" DataFormatString="{0:N3}"
                                                                        AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                        FilterControlWidth="100%"
                                                                        HeaderStyle-HorizontalAlign="Center" HeaderText="ราคาต่อหน่วย<br>แยกภาษี(บาท)" 
                                                                        UniqueName="PriceExVat">
                                                                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                        <ItemStyle HorizontalAlign="Right" />
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridTemplateColumn DataField="ExVatAmount" UniqueName="ExVatAmount" HeaderText="ราคารวม<br>แยกภาษี(บาท)" AutoPostBackOnFilter="true" 
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="false" FilterControlWidth="100%">
                                                                        <ItemTemplate> 
                                                                            <asp:Label ID="lblExVatAmount" runat="server" Text='<%# Eval("ExVatAmount", "{0:N3}") %>'>
                                                                            </asp:Label> 
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                        <ItemStyle HorizontalAlign="Right" />
                                                                        <FooterStyle HorizontalAlign="Right" />
                                                                        <FooterTemplate>
                                                                            <asp:Label CssClass="font-label" ID="lblTotalExVatAmount" runat="server" Font-Bold="true">
                                                                            </asp:Label>
                                                                        </FooterTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn DataField="VatAmount" UniqueName="VatAmount" HeaderText="ภาษีมูลค่าเพิ่ม<br>(บาท)" AutoPostBackOnFilter="true" 
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="false" FilterControlWidth="100%">
                                                                        <ItemTemplate> 
                                                                            <asp:Label ID="lblVatAmount" runat="server" Text='<%# Eval("VatAmount", "{0:N3}") %>'>
                                                                            </asp:Label> 
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                        <ItemStyle HorizontalAlign="Right" />
                                                                        <FooterStyle HorizontalAlign="Right" />
                                                                        <FooterTemplate>
                                                                            <asp:Label CssClass="font-label" ID="lblTotalVatAmount" runat="server" Font-Bold="true">
                                                                            </asp:Label>
                                                                        </FooterTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridTemplateColumn DataField="NetAmount" UniqueName="NetAmount" HeaderText="ราคาสุทธิ<br>(บาท)" AutoPostBackOnFilter="true" 
                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="false" FilterControlWidth="100%">
                                                                        <ItemTemplate> 
                                                                            <asp:Label ID="lblNetAmount" runat="server" Text='<%# Eval("NetAmount", "{0:N3}") %>'>
                                                                            </asp:Label> 
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                                        <ItemStyle HorizontalAlign="Right" />
                                                                        <FooterStyle HorizontalAlign="Right" />
                                                                        <FooterTemplate>
                                                                            <asp:Label CssClass="font-label" ID="lblTotalNetAmount" runat="server" Font-Bold="true">
                                                                            </asp:Label>
                                                                        </FooterTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridBoundColumn DataField="InfoBidderQuotation.InfoBidder.InfoVat.Seq" 
                                                                        HeaderStyle-HorizontalAlign="Center" UniqueName="InfoBidderQuotation.InfoBidder.InfoVat.Seq" 
                                                                        Visible="false">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                    </telerik:GridBoundColumn>
                                                                </Columns>
                                                            </MasterTableView>
                                                            <ClientSettings EnableRowHoverStyle="true" >
                                                                <Selecting AllowRowSelect="True" />
                                                            </ClientSettings>
                                                        </telerik:RadGrid>
                                                    </div>
                                                    <br />
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>   
                    </telerik:RadPageView> 
                    <telerik:RadPageView ID="RadPageView3" runat="server">
                        <asp:Panel ID="panel_Committee" runat="server">
                            <table style="width: 98%;" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:Panel ID="panelCommand_Committee" runat="server">
                                            <div class="bigModuleFull">
                                                <div class="bigModuleBottomFull">
                                                    <table cellpadding="0" cellspacing="0">
                                                        <tr class="command-list">
                                                            <td class="command-item" style="border: none">
                                                                <asp:LinkButton ID="ShowGrid_Committee" runat="server" CssClass="LinkButton" onclick="ShowGrid_Committee_Click" CausesValidation="false">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/table.gif" />&nbsp;&nbsp;แสดงข้อมูลทั้งหมด
                                                                </asp:LinkButton>                        
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNew_Committee" runat="server" CssClass="LinkButton" onclick="AddNew_Committee_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/AddRecord.gif" />&nbsp;&nbsp;เพิ่มข้อมูลใหม่
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Edit_Committee" runat="server" CssClass="LinkButton"  visible="false" OnClick="Edit_Committee_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Edit.gif" />&nbsp;&nbsp;แก้ไขข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Delete_Committee" runat="server" CssClass="LinkButton" OnClientClick="javascript:return confirm('ยืนยันการลบรายการที่เลือก')" OnClick="Delete_Committee_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Delete.gif" />&nbsp;&nbsp;ลบข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Delete_Reason_Committee" runat="server" CssClass="LinkButton">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Delete.gif" />&nbsp;&nbsp;คัดออก
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNewSave_Committee" runat="server" CssClass="LinkButton" Visible="false" onclick="AddNewSave_Committee_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cmd_Save.gif" />&nbsp;&nbsp;บันทึกข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="EditSave_Committee" runat="server" CssClass="LinkButton" Visible="false" onclick="EditSave_Committee_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cmd_Save.gif" />&nbsp;&nbsp;บันทึกข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Cancel_Committee" runat="server" CssClass="LinkButton" Visible="false" onclick="Cancel_Committee_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cancel.gif" />&nbsp;&nbsp;ยกเลิก
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="History_Committee" runat="server" CssClass="LinkButton" Visible="true" CausesValidation="false">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cmd_Save.gif" />&nbsp;&nbsp;ประวัติการแต่งตั้งคณะกรรมการ
                                                                </asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <telerik:RadToolTip runat="server" ID="TipDelete" Width="400px" Height="120px" TargetControlID="Delete_Reason_Committee" ShowEvent="OnClick"
                                        IsClientID="false" Animation="Fade" Position="BottomRight" Skin="Default" Modal="true" ManualClose="true">
                                            <table width="100%">
                                                <tr>
                                                    <td>
                                                        <table width="98%" cellpadding="0" cellspacing="0">
                                                            <tr>
                                                                <td width="20px">
                                                                </td>
                                                                <td>
                                                                    <table>
                                                                        <tr>
                                                                            <td width="100px" valign="top">
                                                                                สาเหตุที่คัดออก :
                                                                            </td>
                                                                            <td>
                                                                                <telerik:RadTextBox ID="txtDeleteReason" runat="server" Skin="Outlook" Width="200" TextMode="MultiLine" Height="100"></telerik:RadTextBox>
                                                                                &nbsp;<label id="Label6" runat="server"><font color="red">*</font></label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2" align="center">
                                                                    <asp:Button ID="btnDelete_Committee" runat="server" Text="คัดออก" Width="100px" OnClick="btnDelete_Committee_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </telerik:RadToolTip>    
                                    </td>
                                </tr>
                                <tr valign="top">
                                    <td valign="top">
                                        <asp:Panel ID="panelData_Committee" runat="server">
                                            <div class="bigModuleFull">
                                                <div class="bigModuleBottomFull">
                                                    <asp:Panel ID="panel3" runat="server">
                                                        <div class="header-grid">
                                                            <asp:Label ID="Label12" runat="server" Text="ข้อมูลรายชื่อคณะกรรมการ"></asp:Label>
                                                        </div>
                                                    </asp:Panel>
                                                    <asp:Panel ID="panelList_Committee" runat="server" CssClass="panelList" ScrollBars="Auto" Visible="false">
                                                        <table width="98%">
                                                            <tr>
                                                                <td>
                                                                    <table cellpadding="0" cellspacing="0" width="98%">
                                                                        <tr>
                                                                            <td width="30px">
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td valign="top" width="150px">
                                                                                                ชุดที่ :
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Label ID="lblCommitteeRefNo" runat="server"></asp:Label>
                                                                                                <telerik:RadNumericTextBox ID="txtCommitteeRefno" runat="server" NumberFormat-DecimalDigits="0" Skin="Outlook" Width="50px">
                                                                                                </telerik:RadNumericTextBox> 
                                                                                                &#160;<label id="Label13" runat="server"><font color="red">*</font></label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Panel ID="panelValtxtCommitteeRefno" runat="server">
                                                                                                </asp:Panel>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td valign="top" width="150px">
                                                                                                ประเภทกรรมการ :
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Label ID="lblCommitteeType" runat="server" AssociatedControlID="rblCommitteeType"></asp:Label>
                                                                                                <asp:RadioButtonList ID="rblCommitteeType" runat="server" AutoPostBack="true" 
                                                                                                    CausesValidation="false" 
                                                                                                    OnSelectedIndexChanged="rblCommitteeType_SelectedIndexChanged" 
                                                                                                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                                                                                                    <asp:ListItem Selected="True" Text="บุคคลภายใน" Value="1"></asp:ListItem>
                                                                                                    <asp:ListItem Text="บุคคลภายนอก" Value="2"></asp:ListItem>
                                                                                                </asp:RadioButtonList>
                                                                                                &#160;<label id="Label14" runat="server"><font color="red">*</font></label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                            </td>
                                                                                            <td>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                        <asp:Panel ID="panelInternal" runat="server" Visible="true">
                                                                            <tr>
                                                                                <td>
                                                                                </td>
                                                                                <td>
                                                                                    <div class="formList-detail">
                                                                                        <table>
                                                                                            <tr>
                                                                                                <td valign="top" width="150px">
                                                                                                    ชื่อกรรมการ :
                                                                                                </td>
                                                                                                <td>
                                                                                                    <asp:Label ID="lblCommitteeInternalName" runat="server"></asp:Label>
                                                                                                    <telerik:RadComboBox ID="cbCommitteeInternalName" runat="server" 
                                                                                                        AllowCustomText="true" EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." 
                                                                                                        EnableLoadOnDemand="true" EnableVirtualScrolling="true" Height="200px" 
                                                                                                        HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                                                                                        OnClientTextChange="onTextChangeGeneral" 
                                                                                                        OnItemsRequested="cbCommitteeInternalName_ItemsRequested" 
                                                                                                        ShowDropDownOnTextboxClick="true" ShowMoreResultsBox="true" Width="740px">
                                                                                                        <HeaderTemplate>
                                                                                                            <table cellpadding="0" cellspacing="0" class="font-label">
                                                                                                                <tr>
                                                                                                                    <td align="center" width="200px"><b>หน่วยงาน</b></td>
                                                                                                                    <td align="center" width="150px"><b>ชื่อ-สกุล</b></td>
                                                                                                                    <td align="center" width="150px"><b>ตำแหน่ง</b></td>
                                                                                                                    <td align="center" width="190px"><b>ระดับ</b></td>
                                                                                                                </tr>
                                                                                                            </table>
                                                                                                        </HeaderTemplate>
                                                                                                        <ItemTemplate>
                                                                                                            <asp:Table ID="tableCommmitteeInternalName" runat="server" CellPadding="0" 
                                                                                                                CellSpacing="0" CssClass="font-label">
                                                                                                            </asp:Table>
                                                                                                        </ItemTemplate>
                                                                                                    </telerik:RadComboBox>
                                                                                                    &#160;<label id="Label15" runat="server"><font color="red">*</font></label>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td>
                                                                                                </td>
                                                                                                <td>
                                                                                                    <asp:Panel ID="panelValcbCommitteeInternalName" runat="server">
                                                                                                    </asp:Panel>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                        </asp:Panel>
                                                                        <asp:Panel ID="panelExternal" runat="server" Visible="false">
                                                                            <tr>
                                                                                <td>
                                                                                </td>
                                                                                <td>
                                                                                    <div class="formList-detail">
                                                                                        <table>
                                                                                            <tr>
                                                                                                <td valign="top" width="150px">
                                                                                                    ชื่อกรรมการ :
                                                                                                </td>
                                                                                                <td>
                                                                                                    <asp:Label ID="lblCommitteeExternalName" runat="server" AssociatedControlID="txtCommitteeExternalName"></asp:Label>
                                                                                                    <asp:TextBox ID="txtCommitteeExternalName" runat="server" CssClass="TextBox" 
                                                                                                        Width="350px"></asp:TextBox>
                                                                                                    &#160;<label id="Label16" runat="server"><font color="red">*</font></label>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td>
                                                                                                </td>
                                                                                                <td>
                                                                                                    <asp:Panel ID="panelValtxtCommitteeExternalName" runat="server">
                                                                                                    </asp:Panel>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                </td>
                                                                                <td>
                                                                                    <div class="formList-detail">
                                                                                        <table>
                                                                                            <tr>
                                                                                                <td valign="top" width="150px">
                                                                                                    รายละเอียด :
                                                                                                </td>
                                                                                                <td>
                                                                                                    <asp:Label ID="lblCommitteeExternalDescr" runat="server" AssociatedControlID="txtCommitteeExternalDescr"></asp:Label>
                                                                                                    <asp:TextBox ID="txtCommitteeExternalDescr" runat="server" CssClass="TextBox" Height="50px" TextMode="MultiLine" Width="350px"></asp:TextBox>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td>
                                                                                                </td>
                                                                                                <td>
                                                                                                    <asp:Panel ID="ValtxtCommitteeExternalDescr" runat="server">
                                                                                                    </asp:Panel>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                        </asp:Panel>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td valign="top" width="150px">
                                                                                                ตำแหน่งกรรมการ :
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Label ID="lblCommitteePosition" runat="server" AssociatedControlID="cbCommitteePosition"></asp:Label>
                                                                                                <telerik:RadComboBox ID="cbCommitteePosition" runat="server" 
                                                                                                    AllowCustomText="true" CssClass="RadComboBox" DataTextField="Name" 
                                                                                                    DataValueField="Seq" EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." 
                                                                                                    Filter="Contains" LoadingMessage="กำลังโหลดข้อมูล ..." MarkFirstMatch="false" 
                                                                                                    OnClientTextChange="onTextChangeGeneral" ShowDropDownOnTextboxClick="true">
                                                                                                </telerik:RadComboBox>
                                                                                                &#160;<label id="Label17" runat="server"><font color="red">*</font></label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Panel ID="panelValcbCommitteePosition" runat="server">
                                                                                                </asp:Panel>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td valign="top" width="150px">
                                                                                                หน้าที่กรรมการ :
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Label ID="lblCommitteeFunction" runat="server" AssociatedControlID="cbCommitteeFunction"></asp:Label>
                                                                                                <telerik:RadComboBox ID="cbCommitteeFunction" runat="server" 
                                                                                                    AllowCustomText="true" CssClass="RadComboBox" DataTextField="Name" 
                                                                                                    DataValueField="Seq" EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." 
                                                                                                    Filter="Contains" LoadingMessage="กำลังโหลดข้อมูล ..." MarkFirstMatch="false" 
                                                                                                    OnClientTextChange="onTextChangeGeneral" ShowDropDownOnTextboxClick="true" 
                                                                                                    Width="250px">
                                                                                                </telerik:RadComboBox>
                                                                                                &#160;<label id="Label22" runat="server"><font color="red">*</font></label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Panel ID="panelValcbCommitteeFunction" runat="server">
                                                                                                </asp:Panel>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    <asp:Panel CssClass="panelGrid" ID="panelGrid_Committee" runat="server" ScrollBars="Auto">
                                                        <div align="Left">
                                                            <telerik:RadGrid CssClass="RadGrid" ID="Grid_Committee" runat="server" AllowFilteringByColumn="true"
                                                            AllowMultiRowSelection="True" AllowPaging="false" AllowSorting="True"
                                                            AutoGenerateColumns="False" EnableAJAX="True"
                                                            GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                            OnItemCommand="Grid_Committee_ItemCommand" OnItemDataBound="Grid_Committee_ItemDataBound">
                                                                <MasterTableView GroupLoadMode="Client" DataKeyNames="Seq" ClientDataKeyNames="Seq" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                    <Columns>
                                                                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="10px" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                        </telerik:GridClientSelectColumn>
                                                                        <telerik:GridTemplateColumn HeaderText="คัดเลือก" ShowFilterIcon="false" AllowFiltering="false" UniqueName="Image" FilterControlWidth="100%">  
                                                                            <ItemTemplate>  
                                                                                <asp:Image ID="Image1" runat="server" />  
                                                                            </ItemTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                        </telerik:GridTemplateColumn>
                                                                        <telerik:GridBoundColumn DataField="InfoFunction.Name"
                                                                            GroupByExpression="InfoFunction.Name Group By InfoFunction.Seq" Groupable="true" Visible="false"
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%" HeaderText="หน้าที่"
                                                                            UniqueName="InfoFunction.Name">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Ref_no"
                                                                            GroupByExpression="Ref_no Group By Ref_no" Groupable="true" Visible="false"
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%" HeaderText="ชุดที่" 
                                                                            UniqueName="Ref_no">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="InfoPosition.Name" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="ตำแหน่ง" 
                                                                            UniqueName="InfoPosition.Name">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="InfoType.Name" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="ประเภท" 
                                                                            UniqueName="InfoType.Name">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridTemplateColumn DataField="Name"  HeaderText="กรรมการ"
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%" UniqueName="Name" SortExpression="Name">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                            <ItemTemplate>
                                                                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="#" onclick='<%# Eval("Seq","return SeqCommitteeClick( {0} );") %>' Text='<%# Eval("Name") %>'></asp:HyperLink>
                                                                            </ItemTemplate>
                                                                        </telerik:GridTemplateColumn>
                                                                        <telerik:GridBoundColumn DataField="Descr" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="รายละเอียด" 
                                                                            UniqueName="Descr">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="DeleteReason" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="สาเหตุที่คัดออก" 
                                                                            UniqueName="DeleteReason">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Com_type" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="Com_type" Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="InfoEmployee.Seq" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="InfoEmployee.Seq" Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Ex_name" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="Ex_name" Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Ex_descr" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="Ex_descr" Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="InfoFunction.Seq" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="InfoFunction.Seq" Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="InfoPosition.Seq" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="InfoPosition.Seq" Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Seq" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="Seq" Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="InfoRecord.InfoStatus.Status" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="InfoRecord.InfoStatus.Status" Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                    </Columns>
                                                                </MasterTableView>
                                                                <ClientSettings EnableRowHoverStyle="true" >
                                                                    <Selecting AllowRowSelect="True" />
                                                                </ClientSettings>
                                                            </telerik:RadGrid>
                                                        </div>
                                                        <br />
                                                    </asp:Panel>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <telerik:RadToolTipManager ID="tipCommitteeHistory" runat="server" Animation="None" 
                            Height="300px" HideEvent="ManualClose" OnAjaxUpdate="OnAjaxUpdateCommittee" Modal="true"
                            Position="BottomRight" ShowEvent="OnClick" Skin="Default" Width="500px">
                        </telerik:RadToolTipManager>
                    </telerik:RadPageView> 
                    <telerik:RadPageView ID="RadPageView4" runat="server">
                        <asp:Panel ID="panel_Penalty" runat="server">
                            <table style="width: 98%;" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:Panel ID="panelCommand_Penalty" runat="server">
                                            <div class="bigModuleFull">
                                                <div class="bigModuleBottomFull">
                                                    <table cellpadding="0" cellspacing="0">
                                                        <tr class="command-list">
                                                            <td class="command-item" style="border: none">
                                                                <asp:LinkButton ID="ShowGrid_Panalty" runat="server" CssClass="LinkButton" onclick="ShowGrid_Penalty_Click" CausesValidation="false">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/table.gif" />&nbsp;&nbsp;แสดงข้อมูลทั้งหมด
                                                                </asp:LinkButton>                        
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNew_Penalty" runat="server" CssClass="LinkButton" onclick="AddNew_Penalty_Click" CausesValidation="false">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/AddRecord.gif" />&nbsp;&nbsp;เพิ่มข้อมูลใหม่
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Edit_Penalty" runat="server" CssClass="LinkButton"  visible="false" OnClick="Edit_Penalty_Click" CausesValidation="false">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Edit.gif" />&nbsp;&nbsp;แก้ไขข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Delete_Penalty" runat="server" CssClass="LinkButton" OnClientClick="javascript:return confirm('ยืนยันการลบข้อมูลที่เลือก')" OnClick="Delete_Penalty_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Delete.gif" />&nbsp;&nbsp;ลบข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNewSave_Penalty" runat="server" CssClass="LinkButton" Visible="false" onclick="AddNewSave_Penalty_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cmd_Save.gif" />&nbsp;&nbsp;บันทึกข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="EditSave_Penalty" runat="server" CssClass="LinkButton" Visible="false" onclick="EditSave_Penalty_Click">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cmd_Save.gif" />&nbsp;&nbsp;บันทึกข้อมูล
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Cancel_Penalty" runat="server" CssClass="LinkButton" Visible="false" onclick="Cancel_Penalty_Click" CausesValidation="false">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cancel.gif" />&nbsp;&nbsp;ยกเลิก
                                                                </asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr valign="top">
                                    <td valign="top">
                                        <asp:Panel ID="panelData_Penalty" runat="server">
                                            <div class="bigModuleFull">
                                                <div class="bigModuleBottomFull">
                                                    <asp:Panel ID="panel6" runat="server">
                                                        <div class="header-grid">
                                                            <asp:Label ID="Label7" runat="server" Text="ข้อมูลกำหนดการปรับ"></asp:Label>
                                                        </div>
                                                    </asp:Panel>
                                                    <asp:Panel ID="panelList_Penalty" runat="server" CssClass="panelList" ScrollBars="Auto" Visible="false">
                                                        <table width="98%">
                                                            <tr>
                                                                <td>
                                                                    <table cellpadding="0" cellspacing="0" width="98%">
                                                                        <tr>
                                                                            <td width="30px">
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td valign="top" width="150px">
                                                                                                ปรับเนื่องจาก :
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Label ID="lblPenaltyName" runat="server" AssociatedControlID="txtPenaltyName"></asp:Label>
                                                                                                <asp:TextBox ID="txtPenaltyName" runat="server" CssClass="TextBox" Width="350px"></asp:TextBox>
                                                                                                &nbsp;<label id="Label8" runat="server"><font color="red">*</font></label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Panel ID="panelValtxtPenaltyName" runat="server">
                                                                                                </asp:Panel>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td width="30px">
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td valign="top" width="150px">
                                                                                                หมายเหตุ :
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Label ID="lblPenaltyDescr" runat="server" AssociatedControlID="txtPenaltyDescr"></asp:Label>
                                                                                                <asp:TextBox ID="txtPenaltyDescr" runat="server" CssClass="TextBox" Width="350px" TextMode="MultiLine" Height="60px"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td width="30px">
                                                                            </td>
                                                                            <td>
                                                                                <div class="formList-detail">
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td valign="top" width="150px">
                                                                                                ค่าปรับ :
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Label ID="lblPenaltyRate" runat="server" AssociatedControlID="txtPenaltyRate"></asp:Label>
                                                                                                <telerik:RadNumericTextBox ID="txtPenaltyRate" runat="server" NumberFormat-DecimalDigits="2" Skin="Outlook" Width="70px"></telerik:RadNumericTextBox> 
                                                                                                <telerik:RadComboBox ID="cbPenaltyRateType" runat="server" 
                                                                                                    AllowCustomText="false" CssClass="RadComboBox" DataTextField="Name" 
                                                                                                    DataValueField="Seq" Filter="Contains" MarkFirstMatch="false" OnClientSelectedIndexChanged="PenaltyRateTypeChange"
                                                                                                    OnClientTextChange="onTextChangeGeneral" ShowDropDownOnTextboxClick="true" Width="80px">
                                                                                                </telerik:RadComboBox>
                                                                                                &nbsp;ต่อ
                                                                                                <asp:Label ID="lblPenaltyCount" runat="server" AssociatedControlID="cbPenaltyCount"></asp:Label>
                                                                                                <telerik:RadComboBox ID="cbPenaltyCount" runat="server" 
                                                                                                    AllowCustomText="false" CssClass="RadComboBox" DataTextField="Name" 
                                                                                                    DataValueField="Seq" Filter="Contains" MarkFirstMatch="false" OnClientSelectedIndexChanged="PenaltyCountChange"
                                                                                                    OnClientTextChange="onTextChangeGeneral" ShowDropDownOnTextboxClick="true" Width="80px">
                                                                                                </telerik:RadComboBox>
                                                                                                &nbsp;<label id="Label10" runat="server"><font color="red">*</font></label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Panel ID="panelValPanaltyRate" runat="server">
                                                                                                </asp:Panel>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                    <asp:Panel ID="panelLeast" runat="server">
                                                                        <table cellpadding="0" cellspacing="0" width="98%">
                                                                            <tr>
                                                                                <td width="30px">
                                                                                </td>
                                                                                <td>
                                                                                    <div class="formList-detail">
                                                                                        <table>
                                                                                            <tr>
                                                                                                <td valign="top" width="150px">
                                                                                                    ไม่ต่ำกว่าวันละ :
                                                                                                </td>
                                                                                                <td>
                                                                                                    <asp:Label ID="lblLeast" runat="server" AssociatedControlID="txtLeast"></asp:Label>
                                                                                                    <telerik:RadNumericTextBox ID="txtLeast" Runat="server" NumberFormat-DecimalDigits="2" 
                                                                                                        NumberFormat-GroupSeparator="," Skin="Outlook" Width="100px">
                                                                                                    </telerik:RadNumericTextBox>
                                                                                                    &nbsp;บาท
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </asp:Panel>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    <asp:Panel CssClass="panelGrid" ID="panelGrid_Penalty" runat="server" ScrollBars="Auto">
                                                        <div align="Left">
                                                            <telerik:RadGrid CssClass="RadGrid" ID="Grid_Penalty" runat="server" AllowFilteringByColumn="true"
                                                            AllowMultiRowSelection="True" AllowPaging="false" AllowSorting="True"
                                                            AutoGenerateColumns="False" EnableAJAX="True"
                                                            GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                            OnItemCommand="Grid_Penalty_ItemCommand">
                                                                <MasterTableView GroupLoadMode="Client" DataKeyNames="Seq" ClientDataKeyNames="Seq" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                    <Columns>
                                                                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="10px" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                        </telerik:GridClientSelectColumn>
                                                                        <telerik:GridTemplateColumn DataField="Name"  HeaderText="ปรับเนื่องจาก"
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%" UniqueName="Name" SortExpression="Name">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                            <ItemTemplate>
                                                                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="#" onclick='<%# Eval("Seq","return SeqPenaltyClick( {0} );") %>' Text='<%# Eval("Name") %>'></asp:HyperLink>
                                                                            </ItemTemplate>
                                                                        </telerik:GridTemplateColumn>
                                                                        <telerik:GridBoundColumn DataField="Descr" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="หมายเหตุ" 
                                                                            UniqueName="Descr">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="PenaltyDetail" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="ค่าปรับ" 
                                                                            UniqueName="PenaltyDetail">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Seq" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="Seq" 
                                                                            Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                    </Columns>
                                                                </MasterTableView>
                                                                <ClientSettings EnableRowHoverStyle="true" >
                                                                    <Selecting AllowRowSelect="True" />
                                                                </ClientSettings>
                                                            </telerik:RadGrid>
                                                        </div>
                                                        <br />
                                                    </asp:Panel>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </telerik:RadPageView> 
                    <telerik:RadPageView ID="RadPageView5" runat="server">
                        <asp:Panel ID="panel_File" runat="server">
                            <table cellpadding="0" cellspacing="0" style="width: 98%;">
                                <tr valign="top">
                                    <td valign="top">
                                        <asp:Panel ID="panelCommand_File" runat="server">
                                            <div class="bigModuleFull">
                                                <div class="bigModuleBottomFull">
                                                    <table>
                                                        <tr class="command-list">
                                                            <td class="command-item" style="border: none">
                                                                <asp:LinkButton ID="ShowGrid_File" runat="server" CausesValidation="false" CssClass="LinkButton" OnClick="ShowGrid_File_Click"> 
                                                                    <img alt="" src="../Image/Grid/table.gif" style="border:0px;vertical-align:middle;" />
                                                                    &#160;&#160;แสดงข้อมูลทั้งหมด 
                                                                </asp:LinkButton>                        
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNew_File" runat="server" CausesValidation="false" CssClass="LinkButton" OnClick="AddNew_File_Click"> 
                                                                    <img alt="" src="../Image/Grid/AddRecord.gif" style="border:0px;vertical-align:middle;" />
                                                                    &#160;&#160;เพิ่มข้อมูลใหม่ 
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="AddNewSave_File" runat="server" CssClass="LinkButton" OnClick="AddNewSave_File_Click" Visible="false"> 
                                                                    <img alt="" src="../Image/Grid/Cmd_Save.gif" style="border:0px;vertical-align:middle;" />
                                                                    &#160;&#160;บันทึกข้อมูล 
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="Delete_File" runat="server" CausesValidation="false" CssClass="LinkButton" OnClick="Delete_File_Click" OnClientClick="javascript:return confirm('ยืนยันการลบข้อมูลที่เลือก')"> 
                                                                    <img alt="" src="../Image/Grid/Delete.gif" style="border:0px;vertical-align:middle;" />
                                                                    &#160;&#160;ลบข้อมูล 
                                                                </asp:LinkButton>
                                                            </td>
                                                            <td class="command-item">
                                                                <asp:LinkButton ID="History_File" runat="server" CssClass="LinkButton" Visible="true">
                                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cmd_Save.gif" />&nbsp;&nbsp;เอกสารแนบที่เกี่ยวข้อง
                                                                </asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>        
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel ID="panelData_File" runat="server">
                                            <div class="bigModuleFull">
                                                <div class="bigModuleBottomFull">
                                                    <asp:Panel ID="panelHeaderList4" runat="server">
                                                        <div class="header-grid">
                                                            <asp:Label ID="Label9" runat="server" Text="ข้อมูลเอกสารแนบ"></asp:Label>
                                                        </div>
                                                    </asp:Panel>
                                                    <asp:Panel ID="panelList_File" runat="server" CssClass="panelList" 
                                                        ScrollBars="Auto" Visible="false">
                                                        <table cellpadding="0" cellspacing="0" width="98%">
                                                            <tr>
                                                                <td width="30px">
                                                                </td>
                                                                <td>
                                                                    <div class="formList-detail">
                                                                        <table>
                                                                            <tr>
                                                                                <td valign="top" width="100px">
                                                                                    ชื่อไฟล์ :
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtFileName" runat="server" Width="650px"></asp:TextBox>
                                                                                    &nbsp;<label id="Label18" runat="server"><font color="red">*</font></label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Panel ID="panelValtxtFileName" runat="server">
                                                                                    </asp:Panel>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td width="30px">
                                                                </td>
                                                                <td>
                                                                    <div class="formList-detail">
                                                                        <table>
                                                                            <tr>
                                                                                <td valign="top" width="100px">
                                                                                    ที่อยู่ไฟล์ :
                                                                                </td>
                                                                                <td>
                                                                                    <div id="uploadFile_div" runat="server">
                                                                                        <input id="attachment" runat="server" name="attachment" 
                                                                                            onchange="getSourceFile();" onkeydown="return false;" size="90" type="file" />
                                                                                        &nbsp;<label id="Label19" runat="server"><font color="red">*</font></label>
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Panel ID="panelValattachment" runat="server">
                                                                                    </asp:Panel>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    <asp:Panel ID="panelGrid_File" runat="server" CssClass="panelGrid" 
                                                        ScrollBars="Auto">
                                                        <div align="left">
                                                            <telerik:RadGrid ID="Grid_File" runat="server" AllowFilteringByColumn="true" 
                                                                AllowMultiRowSelection="True" AllowPaging="false" AllowSorting="True" 
                                                                AutoGenerateColumns="False" CssClass="RadGrid" EnableAJAX="True" 
                                                                GridLines="None" OnItemCommand="Grid_File_ItemCommand" ShowStatusBar="false" 
                                                                Skin="Outlook" Width="95%">
                                                                <mastertableview allowmulticolumnsorting="true" grouploadmode="Client" 
                                                                nomasterrecordstext="&lt;div align=center&gt;&lt;font color=gray&gt;&lt;i&gt;ไม่มีข้อมูล&lt;/i&gt;&lt;/font&gt;&lt;/div&gt;" 
                                                                width="100%">
                                                                    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                    <Columns>
                                                                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
                                                                            <HeaderStyle Width="20px" HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                        </telerik:GridClientSelectColumn>
                                                                        <telerik:GridTemplateColumn DataField="Name"  HeaderText="ชื่อไฟล์"
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%" UniqueName="Name" SortExpression="Name">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Left" />
                                                                            <ItemTemplate>
                                                                                <asp:HyperLink ID="lkName" runat="server" Text='<%# Eval("Name") %>' NavigateUrl='<%# "../Form/Sys_File_View.aspx?table=ICM_PURCHASE_ORDER_FILE&field=ICM_PO_FILE_SEQ&seq=" + Eval("Seq") %>' Target="_blank"></asp:HyperLink>
                                                                            </ItemTemplate>
                                                                        </telerik:GridTemplateColumn>
                                                                        <telerik:GridBoundColumn DataField="Extension" 
                                                                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                            FilterControlWidth="100%"
                                                                            HeaderStyle-HorizontalAlign="Center" HeaderText="นามสกุลไฟล์" 
                                                                            UniqueName="Extension">
                                                                            <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="Seq" 
                                                                            HeaderStyle-HorizontalAlign="Center" UniqueName="Seq" 
                                                                            Visible="false">
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                        </telerik:GridBoundColumn>
                                                                    </Columns>
                                                                </mastertableview>
                                                                <clientsettings enablerowhoverstyle="true">
                                                                    <selecting allowrowselect="True" />
                                                                </clientsettings>
                                                            </telerik:RadGrid>
                                                        </div>
                                                        <br />
                                                    </asp:Panel>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <telerik:RadToolTip ID="TipFileHistory" runat="server" Width="500px" Height="300px" ManualClose="True" Modal="true" Position="BottomCenter" ShowEvent="OnClick" TargetControlID="History_File" Skin="Default" OnClientBeforeShow="ShowFileHistory">
                            <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" OnAjaxRequest="OnAjaxRequestFile">
                            </telerik:RadAjaxPanel>
                        </telerik:RadToolTip>
                    </telerik:RadPageView> 
                    <telerik:RadPageView ID="RadPageView6" runat="server">
                        <asp:Panel ID="panel_Report" runat="server">
                            <table style="width: 98%;" cellpadding="0" cellspacing="0">
                                <tr valign="top">
                                    <td valign="top">
                                        <asp:Panel ID="panelData_Report" runat="server">
                                            <div class="bigModuleFull">
                                                <div class="bigModuleBottomFull">
                                                    <asp:Panel ID="panel8" runat="server">
                                                        <div class="header-grid">
                                                            <asp:Label ID="Label2" runat="server" Text="ข้อมูลรายงาน">
                                                            </asp:Label>
                                                        </div>
                                                    </asp:Panel>
                                                    <asp:Panel CssClass="panelGrid" ID="panelGrid_Report" runat="server" ScrollBars="Auto">
                                                    <div align="Left">
                                                        <telerik:RadGrid CssClass="RadGrid" ID="Grid_Report" runat="server" AllowFilteringByColumn="true"
                                                        AllowMultiRowSelection="True" AllowPaging="false" AllowSorting="True"
                                                        AutoGenerateColumns="False" EnableAJAX="True"
                                                        GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                        OnItemCommand="Grid_Report_ItemCommand">
                                                            <MasterTableView GroupLoadMode="Client" DataKeyNames="Seq" ClientDataKeyNames="Seq" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                <Columns>
                                                                    <telerik:GridBoundColumn DataField="Name_th" 
                                                                        AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                        FilterControlWidth="100%" SortExpression="Name_th"
                                                                        HeaderStyle-HorizontalAlign="Center" HeaderText="ชื่อรายงาน" 
                                                                        UniqueName="Name_th">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridTemplateColumn DataField="FileType"  HeaderText="ประเภทไฟล์"
                                                                        AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                        FilterControlWidth="100%" UniqueName="Name" SortExpression="Name">
                                                                        <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <asp:HyperLink ID="lkPdf" runat="server"  ImageUrl="../Image/Icon/pdf.gif" NavigateUrl="#" onclick='<%# Eval("Seq","return ReportPdfClick( {0} );") %>'></asp:HyperLink>
                                                                            <asp:HyperLink ID="lkWord" runat="server" ImageUrl="../Image/Icon/officeword.gif" NavigateUrl="#" onclick='<%# Eval("Seq","return ReportWordClick( {0} );") %>'></asp:HyperLink>
                                                                            <asp:HyperLink ID="lkExcel" runat="server" ImageUrl="../Image/Icon/excel.gif" NavigateUrl="#" onclick='<%# Eval("Seq","return ReportExcelClick( {0} );") %>'></asp:HyperLink>
                                                                        </ItemTemplate>
                                                                    </telerik:GridTemplateColumn>
                                                                    <telerik:GridBoundColumn DataField="Name_en" HeaderStyle-HorizontalAlign="Center" UniqueName="Name_en" Visible="false">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="Seq" HeaderStyle-HorizontalAlign="Center" UniqueName="Seq" Visible="false">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                    </telerik:GridBoundColumn>
                                                                </Columns>
                                                            </MasterTableView>
                                                            <ClientSettings EnableRowHoverStyle="true" >
                                                                <Selecting AllowRowSelect="True" />
                                                            </ClientSettings>
                                                        </telerik:RadGrid>
                                                    </div>
                                                    <br />
                                                    </asp:Panel>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </telerik:RadPageView> 
                    <telerik:RadPageView ID="RadPageView7" runat="server">
                        <asp:Panel ID="panel_Progress" runat="server">
                            <div class="bigModuleFull" align="left">
                                <div class="bigModuleBottomFull">
                                    <asp:Panel ID="panel1" runat="server">
                                        <div class="header-grid">
                                            <asp:Label ID="Label11" runat="server" Text="ข้อมูลการความคืบหน้า"></asp:Label>
                                        </div>
                                    </asp:Panel>
                                    <div class="header-grid-detail">
                                        <table width="100%">
                                            <tr>
                                                <td width="200px">
                                                    สถานะความคืบหน้าปัจจุบัน :
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblProgress" runat="server" Text="lblProgress"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <asp:Panel CssClass="panelList" runat="server" ID="panel23" ScrollBars="Auto" Height="300px">
                                        <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="98%">
                                                <Items>
                                                    <telerik:RadPanelItem Expanded="false" Text="แจ้งความประสงค์" runat="server"> 
                                                        <Items>
                                                            <telerik:RadPanelItem Value="Bar1" runat="server">
                                                                <ItemTemplate>
                                                                    <asp:Panel ID="Panel1" runat="server" Width="100%">
                                                                        <table width="100%">
                                                                            <tr>
                                                                                <td width="30px">
                                                                                </td>
                                                                                <td>
                                                                                   <div class="header-grid-detail">
                                                                                      <table width="100%">
                                                                                         <tr>
                                                                                            <td>
                                                                                                <asp:Label ID="lblHeaderBar1" runat="server" Text="ให้อนุมัติ"></asp:Label>
                                                                                            </td>
                                                                                            <td align="right">
                                                                                                <asp:Button ID="btnHistory" runat="server" Text="ประวัติการให้อนุมัติ" OnClick="btnHistory_Click" />
                                                                                            </td>
                                                                                         </tr>
                                                                                      </table>
                                                                                  </div> 
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td width="30px">
                                                                                </td>
                                                                                <td>
                                                                                    <telerik:RadGrid CssClass="RadGrid" ID="GridApprove" runat="server" AllowFilteringByColumn="false"
                                                                                    AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True"
                                                                                    GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                                                    OnItemCommand="GridApprove_ItemCommand" >
                                                                                        <MasterTableView GroupLoadMode="Client" DataKeyNames="Seq" ClientDataKeyNames="Seq" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                                            <Columns>
                                                                                                <telerik:GridBoundColumn DataField="Order" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="ลำดับ" 
                                                                                                    UniqueName="Order">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoFromEmp.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="ผู้ส่ง" 
                                                                                                    UniqueName="InfoEmpHeard.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoToEmp.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="ผู้รับ" 
                                                                                                    UniqueName="InfoEmpTo.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoRouteStatus.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="สถานะ" 
                                                                                                    UniqueName="InfoRouteStatus.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Remark" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="หมายเหตุ" 
                                                                                                    UniqueName="Remark">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Order" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="Seq" 
                                                                                                    Visible="false">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                            </Columns>
                                                                                        </MasterTableView>
                                                                                    </telerik:RadGrid>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td width="30px">
                                                                                </td>
                                                                                <td>
                                                                                   <div class="header-grid-detail">
                                                                                      <table width="100%">
                                                                                         <tr>
                                                                                            <td>
                                                                                                <asp:Label ID="lblHeaderBar2" runat="server" Text="แจ้งให้ทราบ"></asp:Label>
                                                                                            </td>
                                                                                            <td align="right">
                                                                                                <asp:Button ID="btnHistory2" runat="server" Text="ประวัติการแจ้งให้ทราบ" OnClick="btnHistory2_Click" />
                                                                                            </td>
                                                                                         </tr>
                                                                                      </table>
                                                                                  </div> 
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td width="30px">
                                                                                </td>
                                                                                <td>
                                                                                    <telerik:RadGrid CssClass="RadGrid" ID="GridInform" runat="server" AllowFilteringByColumn="false"
                                                                                    AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True"
                                                                                    GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                                                    OnItemCommand="GridInform_ItemCommand" >
                                                                                        <MasterTableView GroupLoadMode="Client" DataKeyNames="Seq" ClientDataKeyNames="Seq" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                                            <Columns>
                                                                                                <telerik:GridBoundColumn DataField="InfoFromEmp.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="ผู้ส่ง" 
                                                                                                    UniqueName="InfoEmpHeard.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoToEmp.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="ผู้รับ" 
                                                                                                    UniqueName="InfoEmpTo.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoToEmp.InfoJobSite.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="หน่วยงาน" 
                                                                                                    UniqueName="InfoEmpTo.InfoJobSite.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoToEmp.InfoClass.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="รายละเอียด" 
                                                                                                    UniqueName="InfoEmpTo.InfoClass.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Order" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="Order" 
                                                                                                    Visible="false">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                            </Columns>
                                                                                        </MasterTableView>
                                                                                    </telerik:RadGrid>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </asp:Panel>  
                                                                 </ItemTemplate>
                                                            </telerik:RadPanelItem>
                                                        </Items>
                                                    </telerik:RadPanelItem>
                                                    <telerik:RadPanelItem Expanded="False" Text="ขอซื้อขอจ้าง" runat="server"> 
                                                        <Items>
                                                            <telerik:RadPanelItem Value="Bar2" runat="server">
                                                                <ItemTemplate>
                                                                      <asp:Panel ID="Panel22" runat="server" Width="100%">
                                                                        <table width="100%">
                                                                            <tr><td width="30px"></td><td></td></tr>
                                                                            <tr>
                                                                                <td width="30px"></td>
                                                                                <td>
                                                                                    <telerik:RadGrid CssClass="RadGrid" ID="GridRequest" runat="server" AllowFilteringByColumn="false"
                                                                                    AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True"
                                                                                    GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                                                    OnItemCommand="GridRequest_ItemCommand" OnItemDataBound="GridRequest_ItemDataBound">
                                                                                        <MasterTableView GroupLoadMode="Client" DataKeyNames="Seq" ClientDataKeyNames="Seq" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                                            <Columns>
                                                                                                <telerik:GridBoundColumn DataField="RequireDate" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="วันที่" 
                                                                                                    UniqueName="DateRequired" DataFormatString="{0:dd/MM/yyyy}">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoPurchaseEmp.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="ผู้ทำ" 
                                                                                                    UniqueName="InfoEmployeeRequest.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                                                                                    CurrentFilterFunction="Contains" DataField="Ref_no" FilterControlWidth="100%" 
                                                                                                    HeaderText="เลขที่" ShowFilterIcon="false" SortExpression="Ref_no" 
                                                                                                    UniqueName="Ref_no2">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="250px" />
                                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                                    <ItemTemplate>
                                                                                                        <asp:HyperLink ID="lkRefNo" runat="server" NavigateUrl="#" 
                                                                                                            Text='<%# Eval("Ref_no") %>'></asp:HyperLink>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                                                                                    CurrentFilterFunction="Contains" DataField="Name" FilterControlWidth="100%" 
                                                                                                    HeaderText="เรื่อง" ShowFilterIcon="false" SortExpression="Field3" 
                                                                                                    UniqueName="Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="250px" />
                                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                                    <ItemTemplate>
                                                                                                        <asp:HyperLink ID="lkName" runat="server" NavigateUrl="#" 
                                                                                                            Text='<%# Eval("Name") %>'></asp:HyperLink>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoRecordStatus.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="สถานะรายการ" 
                                                                                                    UniqueName="InfoRecordStatus.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Ref_no" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="Ref_no" 
                                                                                                    Visible="false">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Seq" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="Seq" 
                                                                                                    Visible="false">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                            </Columns>
                                                                                        </MasterTableView>
                                                                                    </telerik:RadGrid>
                                                                                </td>
                                                                            </tr>
                                                                            <tr><td width="30px"></td><td></td></tr>
                                                                        </table>
                                                                      </asp:Panel>
                                                                 </ItemTemplate>
                                                            </telerik:RadPanelItem>
                                                        </Items>
                                                    </telerik:RadPanelItem>
                                                    <telerik:RadPanelItem Expanded="False" Text="ประกาศ" runat="server"> 
                                                        <Items>
                                                            <telerik:RadPanelItem Value="Bar3" runat="server">
                                                                <ItemTemplate>
                                                                      <asp:Panel ID="Panel3" runat="server" Width="100%">
                                                                        <table width="100%">
                                                                            <tr><td width="30px"></td><td></td></tr>
                                                                            <tr>
                                                                                <td width="30px"></td>
                                                                                <td>
                                                                                    <telerik:RadGrid CssClass="RadGrid" ID="GridPublishing" runat="server" AllowFilteringByColumn="false"
                                                                                    AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True"
                                                                                    GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                                                    OnItemCommand="GridPublishing_ItemCommand" OnItemDataBound="GridPublishing_ItemDataBound" >
                                                                                        <MasterTableView GroupLoadMode="Client" DataKeyNames="Seq" ClientDataKeyNames="Seq" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                                            <Columns>
                                                                                                <telerik:GridBoundColumn DataField="Date" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%" DataFormatString="{0:dd/MM/yyyy}"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="วันที่" 
                                                                                                    UniqueName="Date">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoEmp.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="ผู้ทำ" 
                                                                                                    UniqueName="InfoEmp.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                                                                                    CurrentFilterFunction="Contains" DataField="Ref_no" FilterControlWidth="100%" 
                                                                                                    HeaderText="เลขที่" ShowFilterIcon="false" SortExpression="Ref_no" 
                                                                                                    UniqueName="Ref_no2">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="250px" />
                                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                                    <ItemTemplate>
                                                                                                        <asp:HyperLink ID="lkRefNo" runat="server" NavigateUrl="#" 
                                                                                                            Text='<%# Eval("Ref_no") %>'></asp:HyperLink>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                                                                                    CurrentFilterFunction="Contains" DataField="Name" FilterControlWidth="100%" 
                                                                                                    HeaderText="เรื่อง" ShowFilterIcon="false" SortExpression="Field3" 
                                                                                                    UniqueName="Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="250px" />
                                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                                    <ItemTemplate>
                                                                                                        <asp:HyperLink ID="lkName" runat="server" NavigateUrl="#" 
                                                                                                            Text='<%# Eval("Name") %>'></asp:HyperLink>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoRecordStatus.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="สถานะรายการ" 
                                                                                                    UniqueName="InfoRecordStatus.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Ref_no" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="Ref_no" 
                                                                                                    Visible="false">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Seq" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="Seq" 
                                                                                                    Visible="false">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                            </Columns>
                                                                                        </MasterTableView>
                                                                                    </telerik:RadGrid>
                                                                                </td>
                                                                            </tr>
                                                                            <tr><td width="30px"></td><td></td></tr>
                                                                        </table>
                                                                      </asp:Panel>
                                                                 </ItemTemplate>
                                                            </telerik:RadPanelItem>
                                                        </Items>
                                                    </telerik:RadPanelItem>
                                                    <telerik:RadPanelItem Expanded="False" Text="ใบสั่ง/สัญญา" runat="server"> 
                                                        <Items>
                                                            <telerik:RadPanelItem Value="Bar4" runat="server">
                                                                <ItemTemplate>
                                                                      <asp:Panel ID="Panel4" runat="server" Width="100%">
                                                                        <table width="100%">
                                                                            <tr><td width="30px"></td><td></td></tr>
                                                                            <tr>
                                                                                <td width="30px"></td>
                                                                                <td>
                                                                                    <telerik:RadGrid CssClass="RadGrid" ID="GridCommand" runat="server" AllowFilteringByColumn="false"
                                                                                    AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True"
                                                                                    GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                                                    OnItemCommand="GridCommand_ItemCommand" OnItemDataBound="GridCommand_ItemDataBound">
                                                                                        <MasterTableView GroupLoadMode="Client" DataKeyNames="Seq" ClientDataKeyNames="Seq" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                                            <Columns>
                                                                                                <telerik:GridBoundColumn DataField="Date" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%" DataFormatString="{0:dd/MM/yyyy}"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="วันที่" 
                                                                                                    UniqueName="Date">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoEmp.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="ผู้ทำ" 
                                                                                                    UniqueName="InfoEmp.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                                                                                    CurrentFilterFunction="Contains" DataField="Ref_no" FilterControlWidth="100%" 
                                                                                                    HeaderText="เลขที่" ShowFilterIcon="false" SortExpression="Ref_no" 
                                                                                                    UniqueName="Ref_no2">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="250px" />
                                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                                    <ItemTemplate>
                                                                                                        <asp:HyperLink ID="lkRefNo" runat="server" NavigateUrl="#" 
                                                                                                            Text='<%# Eval("Ref_no") %>'></asp:HyperLink>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                                                                                    CurrentFilterFunction="Contains" DataField="Name" FilterControlWidth="100%" 
                                                                                                    HeaderText="เรื่อง" ShowFilterIcon="false" SortExpression="Field3" 
                                                                                                    UniqueName="Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="250px" />
                                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                                    <ItemTemplate>
                                                                                                        <asp:HyperLink ID="lkName" runat="server" NavigateUrl="#" 
                                                                                                            Text='<%# Eval("Name") %>'></asp:HyperLink>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoRecordStatus.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="สถานะรายการ" 
                                                                                                    UniqueName="InfoRecordStatus.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Ref_no" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="Ref_no" 
                                                                                                    Visible="false">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Seq" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="Seq" 
                                                                                                    Visible="false">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                            </Columns>
                                                                                        </MasterTableView>
                                                                                    </telerik:RadGrid>
                                                                                </td>
                                                                            </tr>
                                                                            <tr><td width="30px"></td><td></td></tr>
                                                                        </table>
                                                                      </asp:Panel>
                                                                 </ItemTemplate>
                                                            </telerik:RadPanelItem>
                                                        </Items>
                                                    </telerik:RadPanelItem>
                                                    <telerik:RadPanelItem Expanded="False" Text="ตรวจรับ" runat="server"> 
                                                        <Items>
                                                            <telerik:RadPanelItem Value="Bar5" runat="server">
                                                                <ItemTemplate>
                                                                      <asp:Panel ID="Panel5" runat="server" Width="100%">
                                                                        <table width="100%">
                                                                            <tr><td width="30px"></td><td></td></tr>
                                                                            <tr>
                                                                                <td width="30px"></td>
                                                                                <td>
                                                                                    <telerik:RadGrid CssClass="RadGrid" ID="GridCheck" runat="server" AllowFilteringByColumn="false"
                                                                                    AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True"
                                                                                    GridLines="None" ShowStatusBar="false" Skin="Outlook" Width="95%"
                                                                                    OnItemCommand="GridCheck_ItemCommand" OnItemDataBound="GridCheck_ItemDataBound">
                                                                                        <MasterTableView GroupLoadMode="Client" DataKeyNames="Seq" ClientDataKeyNames="Seq" AllowMultiColumnSorting="true" Width="100%" NoMasterRecordsText="<div align=center><font color=gray><i>ไม่มีข้อมูล</i></font></div>">
                                                                                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                                                                            <Columns>
                                                                                                <telerik:GridBoundColumn DataField="DeliverDate" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%" DataFormatString="{0:dd/MM/yyyy}"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="วันที่" 
                                                                                                    UniqueName="DeliverDate">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="DeliverEmp.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="ผู้ทำ" 
                                                                                                    UniqueName="DeliverEmp.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                                                                                    CurrentFilterFunction="Contains" DataField="Ref_no" FilterControlWidth="100%" 
                                                                                                    HeaderText="เลขที่" ShowFilterIcon="false" SortExpression="Ref_no" 
                                                                                                    UniqueName="Ref_no2">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="250px" />
                                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                                    <ItemTemplate>
                                                                                                        <asp:HyperLink ID="lkRefNo" runat="server" NavigateUrl="#" 
                                                                                                            Text='<%# Eval("Ref_no") %>'></asp:HyperLink>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" 
                                                                                                    CurrentFilterFunction="Contains" DataField="Name" FilterControlWidth="100%" 
                                                                                                    HeaderText="เรื่อง" ShowFilterIcon="false" SortExpression="Field3" 
                                                                                                    UniqueName="Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" Width="250px" />
                                                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                                                    <ItemTemplate>
                                                                                                        <asp:HyperLink ID="lkName" runat="server" NavigateUrl="#" 
                                                                                                            Text='<%# Eval("Name") %>'></asp:HyperLink>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridBoundColumn DataField="InfoRecordStatus.Name" 
                                                                                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                    FilterControlWidth="100%"
                                                                                                    HeaderStyle-HorizontalAlign="Center" HeaderText="สถานะรายการ" 
                                                                                                    UniqueName="InfoRecordStatus.Name">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Ref_no" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="Ref_no" 
                                                                                                    Visible="false">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Seq" 
                                                                                                    HeaderStyle-HorizontalAlign="Center" UniqueName="Seq" 
                                                                                                    Visible="false">
                                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                                </telerik:GridBoundColumn>
                                                                                            </Columns>
                                                                                        </MasterTableView>
                                                                                    </telerik:RadGrid>
                                                                                </td>
                                                                            </tr>
                                                                            <tr><td width="30px"></td><td></td></tr>
                                                                        </table>
                                                                      </asp:Panel>
                                                                 </ItemTemplate>
                                                            </telerik:RadPanelItem>
                                                        </Items>
                                                    </telerik:RadPanelItem>
                                                 </Items>
                                        </telerik:RadPanelBar>
                                        <telerik:RadToolTipManager ID="TipApproveDetail" runat="server" Animation="None" 
                                            HideEvent="Default" OnAjaxUpdate="OnAjaxUpdate_AppDet" 
                                            Position="BottomCenter" ShowEvent="OnClick" Skin="Default" ShowDelay="400" AutoCloseDelay="60000">
                                        </telerik:RadToolTipManager>
                                       <telerik:RadToolTipManager ID="TipHistoryApprove" runat="server" Animation="None" 
                                            OnAjaxUpdate="OnAjaxUpdate_TipHistoryApprove" HideEvent="ManualClose" Modal="true"
                                            Position="BottomCenter" ShowEvent="OnClick" Skin="Default" Width="720px" ShowDelay="0" AutoCloseDelay="60000">
                                        </telerik:RadToolTipManager>
                                        <telerik:RadToolTipManager ID="TipHistoryInform" runat="server" Animation="None" 
                                            OnAjaxUpdate="OnAjaxUpdate_TipHistoryInform" HideEvent="ManualClose" Modal="true"
                                            Position="BottomCenter" ShowEvent="OnClick" Skin="Default" Width="720px" ShowDelay="0" AutoCloseDelay="60000">
                                        </telerik:RadToolTipManager>
                                    </asp:Panel>
                                </div>
                            </div>
                        </asp:Panel>
                    </telerik:RadPageView>                   
                </telerik:RadMultiPage>
                <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" 
                runat="server" Skin="Vista" Modal="true" KeepInScreenBounds="false" Style="z-index: 7001">
                    <Windows>
                        <telerik:RadWindow ID="WindowReport" runat="server" Width="660px" Height="600px" Behaviors="Default">
                        </telerik:RadWindow>
                    </Windows>
                </telerik:RadWindowManager> 
            </div>
        </asp:Panel>
    </form>
</body>
</html>

